package com.yt.order.models.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 订单信息VO
 *
 * @author lvzeming
 * @Date 2025-08-22 21:02:52
 */
@Data
public class OrderInfoVO implements Serializable {
    @ApiModelProperty(value = "主键ID")
    private Long id;
    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "用户ID")
    private Long userId;
    @ApiModelProperty(value = "产品ID")
    private Long productId;
    @ApiModelProperty(value = "付款状态（0未处理，1支付中、2支付成功、3支付失败）")
    private Integer payStatus;
    @ApiModelProperty(value = "订单状态（0待确定，1待付款，2待发货，3待签收，4已签收，5卖家取消，6买家取消，100异常订单（倒记时归零/超时订单））")
    private Integer orderStatus;
    @ApiModelProperty(value = "总价")
    private BigDecimal totalPrice;
    @ApiModelProperty(value = "是否管理员(0普通用户，1管理员)")
    private Integer isAdmin;
    @ApiModelProperty(value = "单价")
    private BigDecimal price;
    @ApiModelProperty(value = "运费")
    private BigDecimal postFee;
    @ApiModelProperty(value = "数量")
    private Integer num;
    @ApiModelProperty(value = "收货人电话")
    private String receiverPhone;
    @ApiModelProperty(value = "收货人姓名")
    private String receiverName;
    @ApiModelProperty(value = "下单时间")
    private Date orderTime;
    @ApiModelProperty(value = "收货地址")
    private String receiverAddress;
    @ApiModelProperty(value = "订单备注")
    private String orderNote;
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}
